import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'assitOnline',
      component: () => import('../views/assitOnline/assitOnline.vue'),
    },
    {
      path: '/login',
      name: 'Login',
      component: () => import('../views/login/loginPage.vue'),
    },
    {
      path: '/home',
      name: 'home',
      component: () => HomeView,
    },
    {
      path: '/chatAi',
      name: 'chatAi',
      component: () => import('../views/chatAi.vue'),
    },
  ],
})

export default router
